<h1>Welcome to jobmanager</h1><br />
<hr />
<?php
if($this->notLogin == 1){
?>
<a id="loginLink" href="javascript:requestLogin();">Login</a>
<?php }else{ ?>
<a id="loginLink" href="javascript:void(0);">Logout</a>
<?php }?>
<script type="text/javascript">
<?php
if($this->notLogin == 1){
?>
requestLogin();

<?php } ?>
function requestLogin(){
	$(function(){
		$.colorbox({
			href: '<?php echo $GLOBALS['url_base']?>jobmanager/index/displaylogin',
			transition: 'fade',
			opacity: 0.5,
			overlayClose: true,
			onLoad: function() {
			    $('#cboxClose').remove();
			}
		});

	});
}
</script>